﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NewsAggregatorLibrary.DAL;

namespace NewsAggregatorLibrary
{
    public class StoreProcedureMember
    {
        public static DataTable GetRelatedStories(int storyid)
        {
            SubSonic.StoredProcedure sp = SPs.GetRelatedStories(storyid);
            DataTable rs = new DataTable();
            rs.Load(sp.GetReader());
            return rs;
        }

        public static DataTable GetKeywordsWithFrequency()
        {
            SubSonic.StoredProcedure sp = SPs.GetKeywordWithFrequency();
            DataTable rs = new DataTable();
            rs.Load(sp.GetReader());
            return rs;
        }

    }
}
